import { createRouter, createWebHashHistory }  from 'vue-router'

import Layout from '../layout/index.vue'

const routes = [
  {
    path: '/',
    component: Layout,
    redirect:'home',
    children: [
      {
        path: '/home',
        component: () => import('../views/Home/index.vue')
      }
    ]
  }
]

export default createRouter({
  history: createWebHashHistory(),
  routes
})